<#include "public.ftl">
package ${basePackage}.entities;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.huitu.whht.framework.common.base.BaseEntity;
<#list colList as col>
<#if col.javaType=='Date'>
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.huitu.whht.framework.common.utils.jackson.MyLocalDateTimeDeserializer;
import com.huitu.whht.framework.common.utils.jackson.MyLocalDateTimeSerializer;
import java.time.LocalDateTime;
<#break ></#if></#list>

/**
 * 说明: ${tab.remarks}主键实体类,表名称: ${tab.tableName} <br/>
 * 日期: ${currentDate}
 * @author ${author}
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ${baseClassName}Key extends BaseEntity {

private static final long serialVersionUID = 4L;

<#list colList as col>
    /**
      * ${col.remarks}
      */
    <#if col.javaType == 'Date'>
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    private LocalDateTime ${col.entityProName};
    <#else>
    private ${col.javaType} ${col.entityProName};
    </#if>
</#list>
}